package com.mojo.xmlbased;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * 日志类 methodBefore 前置通知类型
 *
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 * copyright (C), 2013-2021, 广州九尾信息科技有限公司
 */
public class Log implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println(method.getName() + "方法执行前日志");
    }
}
